using System;
using System.Collections;
using UnityEngine;
using QFramework;

namespace ProjectSurvival
{
    public partial class GameStartController : ViewController
    {
        private void Awake()
        {
            ResKit.InitAsync().ToAction().Start(this, () =>
            {
                UIKit.Root.SetResolution(1920, 1080, 1);
                UIKit.OpenPanelAsync<GameStartPanel>().ToAction().Start(this);
            });
        }

        void Start()
        {
            // Global.OnInitFinish.Register(() =>
            // {
            //    
            // }).UnRegisterWhenGameObjectDestroyed(gameObject);
        }
    }
}